<template>
  <div class="sidebar">
    <ul>
      <li><router-link to="/backManager/area">小区管理</router-link></li>
      <li><router-link to="/backManager/areamanagers">区域管理员管理</router-link></li>
      <li><router-link to="/backManager/buildings">楼栋管理</router-link></li>
      <li><router-link to="/backManager/cars">车辆管理</router-link></li>
      <li><router-link to="/backManager/houses">房屋管理</router-link></li>
      <li><router-link to="/backManager/residents">住户管理</router-link></li>
      <li><router-link to="/backManager/points">打卡点管理</router-link></li>
      <li><router-link to="/backManager/hazards">隐患上报管理</router-link></li>
      <li><router-link to="/backManager/threats">安全威胁管理</router-link></li>
      <li><router-link to="/backManager/accessrecords">用户出入记录管理</router-link></li>
      <li><router-link to="/backManager/home">首页</router-link></li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'AppSidebar'
}
</script>

<style scoped>
.sidebar {
  width: 220px;
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
  padding: 24px 0 24px 0;
  height: 100vh;
  box-shadow: 2px 0 15px rgba(56, 189, 248, 0.5), 2px 0 8px rgba(14, 55, 145, 0.3);
  border-top-right-radius: 18px; border: 1px solid rgba(56, 189, 248, 0.3);
  border-bottom-right-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.sidebar ul {
  list-style: none;
  padding: 0 0 0 0;
  margin: 0;
}
.sidebar li {
  margin-bottom: 10px;
  border-radius: 8px;
  transition: background 0.2s;
  overflow: hidden;
}
.sidebar li:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar a {
  display: block;
  padding: 14px 32px;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.sidebar a.router-link-active,
.sidebar a:hover {
  background: rgba(255,255,255,0.18);
  color: #38bdf8;
  font-weight: bold;
}
</style>
